package com.key.service;

import com.key.common.R;
import com.key.common.vo.UserVO;
import com.key.common.vo.SysUserVo;
import com.key.entity.Employee;
import com.key.entity.SysRole;
import com.key.entity.SysUser;

import javax.management.relation.Role;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/*
 *
 * @author liu
 *
 */
public interface SysUserService {
    R login(UserVO userVO, HttpServletResponse response);

    //显示用户
    List<SysUserVo> findSysUser();

    //增加用户
    boolean addSysUser(SysUser sysUser);

    //删除用户
    boolean deleteSysUser(Integer sysUserId);

    //根据账户和用户名查询用户
    List<SysUser> findSysUserByAccountAndName(String string);

    //修改用户
    boolean updateUser(SysUser sysUser);

    //用户查询角色
    List<SysRole> findRoleByUserId(Integer userId);

    //先删再增用户角色
    boolean deleteAddUserRole(Integer userId,Integer[] roleId);

    //查询未关联用户的员工
    List<Employee> findEmployeeByBreak();


}
